import request from '@/utils/request'

export function getCourseList(data) {
  return request({
    url: '/course/app/list',
    method: 'post',
    data
  })
}
export function getHistoryByCourseId(params) {
  return request({
    url: '/course/app/getHistoryByCourseId',
    method: 'get',
    params
  })
}

export function getCourseDetail(params) {
  return request({
    url: '/course/app/getDetail',
    method: 'get',
    params
  })
}



export function addCourseHistory(data) {
  return request({
    url: '/course/app/createHistory',
    method: 'post',
    data
  })
}


export function getCourseHistoryList(data) {
  return request({
    url: '/course/app/historyList',
    method: 'post',
    data
  })
}
